package com.lock.immersive.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lock.immersive.pojo.domain.Tuan;
import com.lock.immersive.pojo.dto.TuanDto;
import com.lock.immersive.pojo.dto.UserTuanDto;
import com.lock.immersive.pojo.vo.ProductItemVo;
import com.lock.immersive.utils.ResponseApi;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author zhao
* @description 针对表【tuan】的数据库操作Service
* @createDate 2023-07-02 00:04:03
*/
public interface TuanService extends IService<Tuan> {

    ResponseApi<Object> createTuan(TuanDto tuanDto, HttpServletRequest request);

    ResponseApi<Object> updateTuan(Tuan tuan, HttpServletRequest request);

    ResponseApi<Integer> joinTuan(UserTuanDto userTuanDto, HttpServletRequest request);

    ResponseApi<ProductItemVo> getProductById(Integer productId, HttpServletRequest request);
}
